package procsim;

public class PaintMaskedInterruptsAck  extends PaintTab{
    public PaintMaskedInterruptsAck(Paint parent){
        super(parent);
        //Coordinates
        Design.ldINTEXT.addCoords(this, 230, 50, 230, 110).addCoords(this, Design.MIAAnd1.getUpper2Coords(20)).addCoords(this, 230, 50, 230, 310).addCoords(this, Design.MIAAnd2.getUpper2Coords(20));
        Design.ldINTEXT.addCoords(this, 580, 50, 580, 110).addCoords(this, Design.MIAAnd3.getUpper2Coords(20)).addCoords(this, 580, 50, 580, 310).addCoords(this, Design.MIAAnd4.getUpper2Coords(20));
        Design.inm.addCoords(this, Design.MIARSLeft1.getSCoords(25));
        Design.ackPRINM.addCoords(this, Design.MIARSLeft1.getRCoords(55)).addCoords(this, 70, 163, 70, 220).addCoords(this, 70, 220, 255, 220).addCoords(this, 255, 220, 255, 163).addCoords(this, Design.MIARSRight1.getRCoords(45));
        Design.intr3.addCoords(this, Design.MIARSLeft2.getSCoords(25));
        Design.ackPER3.addCoords(this, Design.MIARSLeft2.getRCoords(55)).addCoords(this, 70, 363, 70, 420).addCoords(this, 70, 420, 255, 420).addCoords(this, 255, 420, 255, 363).addCoords(this, Design.MIARSRight2.getRCoords(45));
        Design.intr2.addCoords(this, Design.MIARSLeft3.getSCoords(25));
        Design.ackPER2.addCoords(this, Design.MIARSLeft3.getRCoords(55)).addCoords(this, 420, 163, 420, 220).addCoords(this, 420, 220, 605, 220).addCoords(this, 605, 220, 605, 163).addCoords(this, Design.MIARSRight3.getRCoords(45));
        Design.intr1.addCoords(this, Design.MIARSLeft4.getSCoords(25));
        Design.ackPER1.addCoords(this, Design.MIARSLeft4.getRCoords(55)).addCoords(this, 420, 363, 420, 420).addCoords(this, 420, 420, 605, 420).addCoords(this, 605, 420, 605, 363).addCoords(this, Design.MIARSRight4.getRCoords(45));
        Design.Finm.addCoords(this, Design.MIARSLeft1.getQCoords(45)).addCoords(this, 205, 117, 205, 125).addCoords(this, Design.MIAAnd1.getLower2Coords(45));
        Design.Fintr3.addCoords(this, Design.MIARSLeft2.getQCoords(45)).addCoords(this, 205, 317, 205, 325).addCoords(this, Design.MIAAnd2.getLower2Coords(45));
        Design.Fintr2.addCoords(this, Design.MIARSLeft3.getQCoords(45)).addCoords(this, 555, 117, 555, 125).addCoords(this, Design.MIAAnd3.getLower2Coords(45));
        Design.Fintr1.addCoords(this, Design.MIARSLeft4.getQCoords(45)).addCoords(this, 555, 317, 555, 325).addCoords(this, Design.MIAAnd4.getLower2Coords(45));
        Design.PRINM.addCoords(this, Design.MIARSRight1.getQCoords(45));
        Design.PRPER3.addCoords(this, Design.MIARSRight2.getQCoords(45));
        Design.PRPER2.addCoords(this, Design.MIARSRight3.getQCoords(45));
        Design.PRPER1.addCoords(this, Design.MIARSRight4.getQCoords(45));
        Design.MIAAnd1Result.addCoords(this, Design.MIAAnd1.getResCoords(20));
        Design.MIAAnd2Result.addCoords(this, Design.MIAAnd2.getResCoords(20));
        Design.MIAAnd3Result.addCoords(this, Design.MIAAnd3.getResCoords(20));
        Design.MIAAnd4Result.addCoords(this, Design.MIAAnd4.getResCoords(20));
        
        //Collections
        elements.add(Design.MIARSLeft1);
        elements.add(Design.MIARSLeft2);
        elements.add(Design.MIARSLeft3);
        elements.add(Design.MIARSLeft4);
        elements.add(Design.MIARSRight1);
        elements.add(Design.MIARSRight2);
        elements.add(Design.MIARSRight3);
        elements.add(Design.MIARSRight4);
        elements.add(Design.MIAAnd1);
        elements.add(Design.MIAAnd2);
        elements.add(Design.MIAAnd3);
        elements.add(Design.MIAAnd4);

        lines.add(Design.inm);
        lines.add(Design.ackPRINM);
        lines.add(Design.intr3);
        lines.add(Design.ackPER3);
        lines.add(Design.intr2);
        lines.add(Design.ackPER2);
        lines.add(Design.intr1);
        lines.add(Design.ackPER1);
        lines.add(Design.Finm);
        lines.add(Design.Fintr3);
        lines.add(Design.Fintr2);
        lines.add(Design.Fintr1);
        lines.add(Design.ldINTEXT);
        lines.add(Design.PRINM);
        lines.add(Design.PRPER3);
        lines.add(Design.PRPER2);
        lines.add(Design.PRPER1);
        lines.add(Design.MIAAnd1Result);
        lines.add(Design.MIAAnd2Result);
        lines.add(Design.MIAAnd3Result);
        lines.add(Design.MIAAnd4Result);
    }
}
